package com.yuexun.dhdoctor.module.meeting.api;

import com.yuexun.dhdoctor.base.BaseEntity;
import com.yuexun.dhdoctor.module.meeting.bean.MeetingBean;
import com.yuexun.dhdoctor.module.meeting.bean.MeetingBeanCheckBean;
import com.yuexun.dhdoctor.module.meeting.bean.MeetingCheckStateBean;
import com.yuexun.dhdoctor.module.meeting.bean.MeetingDetailBean;
import com.yuexun.dhdoctor.module.meeting.bean.MeetingSignData;

import java.util.Map;

import retrofit.http.FieldMap;
import retrofit.http.FormUrlEncoded;
import retrofit.http.POST;
import rx.Observable;

/**
 * Created by work-jx on 2016/11/15.
 */
public interface MeetingApi {
    //会议信息
    @FormUrlEncoded
    @POST("inquireMeetingListWeekly.json")
    Observable<MeetingBean> getMeetingList(@FieldMap Map<String, String> praise);

    //会议详情
    @FormUrlEncoded
    @POST("inquireMeetingDetail.json")
    Observable<MeetingDetailBean> getMeetingDetail(@FieldMap Map<String, String> praise);

    //查询会议签到
    @FormUrlEncoded
    @POST("inquireAccountSignState.json")
    Observable<MeetingCheckStateBean> getMeetingCheckState(@FieldMap Map<String, String> praise);

    //会议签到
    @FormUrlEncoded
    @POST("createMeetingAttendance.json")
    Observable<MeetingBeanCheckBean> getMeetingCheck(@FieldMap Map<String, String> praise);

    //会议签到记录
    @FormUrlEncoded
    @POST("inquireUserMeetingSignDetail.json")
    Observable<BaseEntity<MeetingSignData>> getMeetingSign(@FieldMap Map<String, String> praise);
}
